package com.ruoyi.address.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收货地址信息对象 wdm_address
 *
 * @author ruoyi
 * @date 2025-05-31
 */
public class Address extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收货地址ID */
    private Long addressId;

    /** 顾客ID */
    @Excel(name = "顾客ID")
    private Long guestId;

    /** 收货人姓名 */
    @Excel(name = "收货人姓名")
    private String deliveryName;

    /** 收货人联系电话 */
    @Excel(name = "收货人联系电话")
    private String deliveryPhone;

    /** 省份名称（如北京市） */
    @Excel(name = "省份名称", readConverterExp = "如=北京市")
    private String province;

    /** 城市名称（如上海市） */
    @Excel(name = "城市名称", readConverterExp = "如=上海市")
    private String city;

    /** 区县名称（如朝阳区） */
    @Excel(name = "区县名称", readConverterExp = "如=朝阳区")
    private String district;

    /** 详细街道地址 */
    @Excel(name = "详细街道地址")
    private String detailAddress;

    /** 邮政编码（6位数字） */
    @Excel(name = "邮政编码", readConverterExp = "6=位数字")
    private String postalCode;

    /** 是否默认 */
    @Excel(name = "是否默认")
    private String isDefault;

    /** 地址标签 */
    @Excel(name = "地址标签")
    private String addressTag;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 删除 */
    private String delFlag;

    /** 版本号 */
    private Long version;

    public void setAddressId(Long addressId)
    {
        this.addressId = addressId;
    }

    public Long getAddressId()
    {
        return addressId;
    }
    public void setGuestId(Long guestId)
    {
        this.guestId = guestId;
    }

    public Long getGuestId()
    {
        return guestId;
    }
    public void setDeliveryName(String deliveryName)
    {
        this.deliveryName = deliveryName;
    }

    public String getDeliveryName()
    {
        return deliveryName;
    }
    public void setDeliveryPhone(String deliveryPhone)
    {
        this.deliveryPhone = deliveryPhone;
    }

    public String getDeliveryPhone()
    {
        return deliveryPhone;
    }
    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getProvince()
    {
        return province;
    }
    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCity()
    {
        return city;
    }
    public void setDistrict(String district)
    {
        this.district = district;
    }

    public String getDistrict()
    {
        return district;
    }
    public void setDetailAddress(String detailAddress)
    {
        this.detailAddress = detailAddress;
    }

    public String getDetailAddress()
    {
        return detailAddress;
    }
    public void setPostalCode(String postalCode)
    {
        this.postalCode = postalCode;
    }

    public String getPostalCode()
    {
        return postalCode;
    }
    public void setIsDefault(String isDefault)
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault()
    {
        return isDefault;
    }
    public void setAddressTag(String addressTag)
    {
        this.addressTag = addressTag;
    }

    public String getAddressTag()
    {
        return addressTag;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setVersion(Long version)
    {
        this.version = version;
    }

    public Long getVersion()
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("addressId", getAddressId())
            .append("guestId", getGuestId())
            .append("deliveryName", getDeliveryName())
            .append("deliveryPhone", getDeliveryPhone())
            .append("province", getProvince())
            .append("city", getCity())
            .append("district", getDistrict())
            .append("detailAddress", getDetailAddress())
            .append("postalCode", getPostalCode())
            .append("isDefault", getIsDefault())
            .append("addressTag", getAddressTag())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
